#include "dialog.h"
#include "ui_dialog.h"

bool var = false;

Dialog::Dialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog)
{
    ui->setupUi(this);
}

Dialog::~Dialog()
{
    delete ui;
}

void Dialog::on_pushButtonOK_clicked()
{
    var = true;
    Dialog::accept();
}

void Dialog::on_pushButtonNO_clicked()
{
    var = false;
    Dialog::accept();
}

void Dialog::on_pushButtonCancel_clicked()
{
    Dialog::reject();
}

bool Dialog::slot()
{
    return var;
}
